package cn.coisini.api.admin;

import cn.coisini.model.common.dtos.Result;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.ai.chat.model.ChatResponse;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import reactor.core.publisher.Flux;

/**
 * @author xiangshaw
 * Description: Ai接口API
 */
@Tag(name = "AI接口API", description = "AI接口API")
@RequestMapping("/api/v1/ai")
public interface AiControllerApi {

    @GetMapping(value = "/deepSeek/chat", produces = MediaType.APPLICATION_JSON_VALUE)
    Result<String> chat(@RequestParam("message") String message);


    @GetMapping(value = "/deepSeek/chatFlux", produces = MediaType.APPLICATION_JSON_VALUE)
    Result<Flux<ChatResponse>> chatFlux(@RequestParam("message") String message);
}
